import 'package:enterprise_v6_app/generated/json/base/json_convert_content.dart';
import 'package:enterprise_v6_app/app/data/entities/auth/user_login_entity.dart';

UserLoginEntity $UserLoginEntityFromJson(Map<String, dynamic> json) {
  final UserLoginEntity userLoginEntity = UserLoginEntity();
  final String? userName = jsonConvert.convert<String>(json['userName']);
  if (userName != null) {
    userLoginEntity.userName = userName;
  }
  final String? passWord = jsonConvert.convert<String>(json['passWord']);
  if (passWord != null) {
    userLoginEntity.passWord = passWord;
  }
  return userLoginEntity;
}

Map<String, dynamic> $UserLoginEntityToJson(UserLoginEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['userName'] = entity.userName;
  data['passWord'] = entity.passWord;
  return data;
}

extension UserLoginEntityExtension on UserLoginEntity {
  UserLoginEntity copyWith({
    String? userName,
    String? passWord,
  }) {
    return UserLoginEntity()
      ..userName = userName ?? this.userName
      ..passWord = passWord ?? this.passWord;
  }
}
